package com.example.demo.repository;

import com.example.demo.entity.Product.Qty;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface QtyRepository extends CrudRepository<Qty, Integer> {
    @Query("select q from Qty q where q.billNo = :billNo and q.wpCode = :wpCode")
    Qty getQty(String billNo, String wpCode);
}
